﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><HEAD><TITLE>后台管理</TITLE>
<META content=IE=8 http-equiv=X-UA-Compatible>
<META content="text/html; charset=utf-8" http-equiv=Content-Type>

<link rel="stylesheet" media="screen" href="@{'/public/stylesheets/css/base.css'}">
<link rel="stylesheet" media="screen" href="@{'/public/stylesheets/css/admin_box.css'}">
<script src="@{'/public/javascripts/jquery.js'}" type="text/javascript" charset="${_response_encoding}"></script>

<SCRIPT type=text/javascript src="js/kindeditor-min.js"></SCRIPT>

<SCRIPT type=text/javascript>
function setTab(id, num, n){
	for(var i=1; i<=n; i++){
		$("#"+id+i).removeClass('hover');
	}
	$("#"+id+num).addClass('hover');
}
KindEditor.ready(function(K) {
	K.create('#editor', {
		width: '99%',
		height: '460px',
		resizeType: 1,
		themeType: 'simple',
		urlType: 'relative',
		allowFileManager : true
	});
});
</SCRIPT>
</HEAD>
<BODY>
<DIV id=contain>
<DIV class=admin_title>
<H2>添加文章</H2><A class=right href="javascript:history.back(-1)">返回上一页</A> </DIV>
<FORM onSubmit="return check_form(document.add);" encType=multipart/form-data 
method=post action=#>
<UL class=tab>
  <LI id=one1 class=hover onClick="setTab('one',1,2)">基本信息</LI>
  <LI id=one2 onClick="setTab('one',2,2)">附加设置</LI></UL>
<DIV id=con_one_1 class=form_box>
<TABLE>
  <TBODY>
  <TR>
    <TH>栏目：</TH>
    <TD><SELECT name=cid reg="^.+$"> <OPTION selected value="">选择分类</OPTION> 
        <OPTION value=1>企业要闻</OPTION> <OPTION value=2>饮酒文化</OPTION></SELECT> 
</TD></TR>
  <TR>
    <TH>属性：</TH>
    <TD><SELECT id=recommend name=recommend> <OPTION selected 
        value=1>普通内容</OPTION> <OPTION style="COLOR: #090" value=2>热门推荐</OPTION> 
        <OPTION style="COLOR: #f63" value=3>重点推荐</OPTION></SELECT> <SELECT id=top 
      name=top> <OPTION selected value=2>不置顶</OPTION> <OPTION 
        style="COLOR: #f63" value=1>置顶</OPTION></SELECT> <SELECT id=state 
      name=state> <OPTION selected value=1>正常显示</OPTION> <OPTION 
        style="COLOR: #f63" value=2>关闭显示</OPTION></SELECT> 
  常规属性,如果不是特殊内容可以不用设置</TD></TR>
  <TR>
    <TH>标题：</TH>
    <TD><INPUT class="input ruler" name=title type=text>必须填写</TD></TR>
  <TR>
    <TH>缩图：</TH>
    <TD><INPUT id=thumb class="input w200" name=thumb type=text> <A 
      class=button onclick=# href="javascript:void(0);">上传缩图</A> </TD></TR>
  <TR>
    <TH>内容</TH>
    <TD><TEXTAREA id=editor name=content></TEXTAREA> 
</TD></TR></TBODY></TABLE></DIV>
<DIV style="DISPLAY: none" id=con_one_2 class=form_box>
<TABLE width="100%">
  <TBODY>
  <TR>
    <TH>关联内容：</TH>
    <TD><INPUT class="input w400" name=reid type=text> <A class=button 
      onclick="" href="javascript:void(0);">选择相关</A></TD></TR>
  <TR>
    <TH>SEO关键字：</TH>
    <TD><INPUT id=keywords class="input w400" name=keywords type=text> 
      请使用全角逗号分隔。</TD></TR>
  <TR>
    <TH>SEO描述： </TH>
    <TD><TEXTAREA class="textarea w400 h80" onkeyup=value=value.substr(0,110); name=intro></TEXTAREA> 
      长度不能超过110个字符，留空将自动提取文章前110个字符 </TD></TR>
  <TR>
    <TH>发布时间：</TH>
    <TD colSpan=3><INPUT class="input date" name=create_time></TD></TR>
  <TR>
    <TH>点击数：</TH>
    <TD colSpan=3><INPUT id=clickcount class="input w150" name=clickcount 
      value=0 type=text> </TD></TR>
  <TR>
    <TH>内容页模版：</TH>
    <TD><INPUT class="input w150" name=temp type=text> 不带文件后缀，留空为默认模板 
    格式为show_</TD></TR></TBODY></TABLE></DIV>
<DIV class=btn><INPUT name=id type=hidden> <INPUT name=do value=yes type=hidden> 
<INPUT class=button name=dosubmit value=确定 type=submit> <INPUT class=button name=reset value=重置 type=reset> 
</DIV></FORM></DIV></BODY></HTML>
